package br.com.pmz.gerador.conexao.oracle;

import br.com.pmz.gerador.conexao.ConnectionImpl;
import br.com.pmz.gerador.vo.ConnectionVO;

/**
 * @author tcs001
 * 
 */
public final class ConnectionOracleImpl extends ConnectionImpl {

    /**
     * {@inheritDoc}
     */
    public String getDriver() {
	return "oracle.jdbc.driver.OracleDriver";
    }

    /**
     * {@inheritDoc}
     */
    public String getJDBC() {
	StringBuilder sb = new StringBuilder("jdbc:oracle:thin:@");
	sb.append(getConnect().getHost());
	sb.append(":1521:");
	sb.append(getConnect().getSsid());
	return sb.toString();
    }

    /**
     * {@inheritDoc}
     */
    public void setConnection(final ConnectionVO connect) {
	super.setConnect(connect);
    }
}
